package wwj.bean;

import java.math.BigDecimal;
import java.util.HashMap;

public class ShopCartData {
    // 购物车列表项
    private HashMap<String,CartItem> itemList;
    // 总计
    private BigDecimal total;
    // 全选属性
    private Boolean allChecked = true;

    public Boolean getAllChecked() {
        return allChecked;
    }

    public void setAllChecked(Boolean allChecked) {
        this.allChecked = allChecked;
    }

    public ShopCartData() {
        this.itemList = new HashMap<String,CartItem> ();
        this.total = new BigDecimal(0);
    }

    public HashMap<String, CartItem> getItemList() {
        return itemList;
    }

    public void setItemList(HashMap<String, CartItem> itemList) {
        this.itemList = itemList;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }
}
